package com.ev.mes.dao;

import com.ev.mes.domain.ProductionFeedingDetailDO;

import java.util.List;
import java.util.Map;

import com.ev.mes.domain.SyncLogDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 生产投料单（详情列表）
 * @author ev-monitor
 * @email 286600136@qq.com
 * @date 2019-11-22 10:10:27
 */
@Mapper
public interface ProductionFeedingDetailDao {

	ProductionFeedingDetailDO get(Long id);

	List<ProductionFeedingDetailDO> list(Map<String,Object> map);

	int count(Map<String,Object> map);

	int save(ProductionFeedingDetailDO productionFeedingDetail);

	int saveSyncLog(SyncLogDO syncLogDO);

	int batchSaveSyncLog(List<SyncLogDO> list);

	int updateSyncLog(SyncLogDO syncLogDO);

	List<Map<String, Object>> listSyncLog(Map<String,Object> map);

	int countSyncLog(Map<String,Object> map);

	int update(ProductionFeedingDetailDO productionFeedingDetail);

	int remove(Long id);

	int batchRemove(Long[] ids);

	int batchRemoveByHeadId(Long[] headIds);

	List<Map<String, Object>> listForMap(Map<String, Object> params);

	int countForMap(Map<String, Object> params);

	int removeByHeadId(Long id);

    List<Map<String, Object>> phoneListForMap(Map<String, Object> params);

    List<ProductionFeedingDetailDO> feedingItemList(Map<String, Object> params);

    List<Long> feedingCountGroupByPlanId(Map<String, Object> params);

	int phoneCountForMap(Map<String, Object> params);

	int batchSave(List<ProductionFeedingDetailDO> list);

	int batchUpdateToDelFlagByMainId(List<Long> headIds);
}
